package org.model;

/**
 * Zyb entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class Zyb implements java.io.Serializable {

	private Integer id;
	private String zym;
	private Integer rs;
	private String fdy;

	// Constructors

	/** default constructor */
	public Zyb() {
	}	// Constructors


	/** full constructor */
	public Zyb(Integer id) {
		this.id = id;
	}

	/** minimal constructor */
	public Zyb(Integer id, String zym) {
		this.id = id;
		this.zym = zym;
	}

	/** full constructor */
	public Zyb(Integer id, String zym, Integer rs, String fdy) {
		this.id = id;
		this.zym = zym;
		this.rs = rs;
		this.fdy = fdy;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getZym() {
		return this.zym;
	}

	public void setZym(String zym) {
		this.zym = zym;
	}

	public Integer getRs() {
		return this.rs;
	}

	public void setRs(Integer rs) {
		this.rs = rs;
	}

	public String getFdy() {
		return this.fdy;
	}

	public void setFdy(String fdy) {
		this.fdy = fdy;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof Zyb))
			return false;
		Zyb castOther = (Zyb) other;

		return ((this.getId() == castOther.getId()) || (this.getId() != null
				&& castOther.getId() != null && this.getId().equals(
				castOther.getId())))
				&& ((this.getZym() == castOther.getZym()) || (this.getZym() != null
						&& castOther.getZym() != null && this.getZym().equals(
						castOther.getZym())))
				&& ((this.getRs() == castOther.getRs()) || (this.getRs() != null
						&& castOther.getRs() != null && this.getRs().equals(
						castOther.getRs())))
				&& ((this.getFdy() == castOther.getFdy()) || (this.getFdy() != null
						&& castOther.getFdy() != null && this.getFdy().equals(
						castOther.getFdy())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result + (getId() == null ? 0 : this.getId().hashCode());
		result = 37 * result
				+ (getZym() == null ? 0 : this.getZym().hashCode());
		result = 37 * result + (getRs() == null ? 0 : this.getRs().hashCode());
		result = 37 * result
				+ (getFdy() == null ? 0 : this.getFdy().hashCode());
		return result;
	}

}